package com.zzt.questionbankquestion.service;

import com.zzt.questionbankquestion.bean.Course;
import com.zzt.questionbankquestion.bean.dto.CourseDTO;
import com.zzt.questionbankquestion.bean.dto.PageResult;
import com.zzt.questionbankquestion.bean.dto.Result;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Specification;

public interface CourseService {
    public Result addCourse(CourseDTO dto);
    public Result editCourse(CourseDTO dto);
    public Result deleteCourse(Long courseId);
    public Result<CourseDTO> get(Long courseId);
    public PageResult<CourseDTO> getAPage(PageRequest pageRequest);
    public PageResult<CourseDTO> getASpecialPage(Specification< Course > specification, PageRequest pageRequest);
}
